qt4-demos software package provides Qt 4 examples and demos, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install qt4-demos
qt4-demos is installed in your system.
Make ensure the qt4-demos package were installed using the commands given below,
$ sudo dpkg-query -l | grep qt4-demos *
You will get with qt4-demos package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | X Window System software |
| Package | qt4-demos |
| Version | 4:4.8.5+git192-g085f851+dfsg-2 |
| Description | Qt 4 examples and demos |
| Sub Section | x11 |